<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
		<script src="index.js?a=1"></script>
</head>
<body>

</body>
<script>
	// 1- Promise.resolve接收的是一个非Promise,那么p1状态为成功，值为接收的值
	// 1- Promise.resolve接收的是一个Promise,那么会将该Promise进行返回
	
	const p1 = Promise.resolve();
	// const p1 = Promise.resolve(1);
	// const p1 = Promise.resolve(new Promise(resolve=>{
	// 	resolve(100);
	// }));
	
	// const p = new Promise((resolve,reject)=>{
	// 	// resolve(200);
	// 	reject(200);
	// })
	// const p1 = Promise.resolve(p);
	console.log(p1);
</script>
</html>